package week5;

public class PersonServiceProxy implements PersonService {
    private PersonService personService;
    public void save(){
        TransactionManager.begin();
        personService.save();
        TransactionManager.commit();
    }
    public void update(){
        TransactionManager.begin();
        personService.update();
        TransactionManager.commit();
    }

    public void delete(){
        TransactionManager.begin();
        personService.delete();
        TransactionManager.commit();
    }

    public void list(){

        personService.list();

    }

}
